package org.springframework.prospring.ticket.dao;

import org.springframework.prospring.ticket.domain.Turn;
import org.springframework.prospring.ticket.domain.Field;
import org.springframework.prospring.ticket.domain.Club;
import org.springframework.prospring.ticket.domain.user.User;

import java.util.Set;
import java.util.Collection;
import java.util.Date;
import java.sql.Timestamp;

public interface ClubDAO extends DAO {

    public Club findClub(Long clubId);

    public Collection<Club> findAllClubs();

    public Collection<Club> findAllClubsByRegionId(Long regionId);

    public Collection<Field> findFields(Long clubId);

    public Collection<Turn> findAllTurnsByFieldIdAndDate(Long fieldId, Date date);

    public Turn saveReservationField(Long fieldId, Timestamp startDate, Timestamp endDate, User user);

    public void saveClub(Club club) throws Exception;

    public void removeClub(Long turnId);

}
